package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("ap_user_fan")
public class ApUserFan {

    private static final long serialVersionUID = 1L;

    public ApUserFan() {
        this.display = true;
        this.shieldComment = false;
        this.shieldLetter = false;
        this.createdTime = new Date();
        this.level = 0;
    }

    /**
     * fan表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 关注作者ID
     */
    @TableField(value = "fans_id")
    private Integer fanId;

    /**
     * 关注作者名称
     */
    @TableField(value = "fans_name")
    private String fanName;

    /**
     * 关注度
     * 0 正常
     * 1 潜力股
     * 2 勇士
     * 3 铁杆
     * 4 老铁
     */
    @TableField(value = "level")
    private Short level;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;

    /**
     * 是否可见我动态
     */
    @TableField(value = "is_display")
    private boolean display;

    /**
     * 是否屏蔽私信
     */
    @TableField(value = "is_shield_letter")
    private boolean shieldLetter;

    /**
     * 是否屏蔽评论
     */
    @TableField(value = "is_shield_comment")
    private boolean shieldComment;

}
